package entryPoint;

import svg.GameController;
import svg.MainWindow;

/**
 * The start point of the game.
 */
public class GameStart {

	public static void main(String[] args) {
		new GameStart();
	}
	
	public GameStart() {
		// create the gui
		MainWindow window = new MainWindow();
		
		// create the controller and give a reference of it to the window
		GameController controller = new GameController(window);
		
		// set a reference to the controller and register listener on main window
		window.setGameController(controller);
		window.registerListener();
		
		// start the game
		controller.startGame();
	}

}
